{% load absurl %}
<li class="taxon_result" id="taxon_{{object.pk}}">
    <div class="image_results" data-search-term="{{object.image_search_term}}"></div>
    <h3>{{object.name}}<span class="common_name">{{object.common_name}}</span></h3>
    {% ifequal object.protocols.count 1 %}
    <p>This species is sampled by the {% for protocol in object.protocols %}<a class="protocol" href="#">{{protocol.name|lower}}</a>{% endfor %} protocol.</p>
    {% for protocol in object.protocols %}
    <p><a data-records-url="{% url monitoring.views.taxon_records object.pk protocol.pk 99999999999 %}" data-common_name="{{object.common_name}}" data-scientific_name="{{object.scientific_name}}" data-protocol="{{protocol.name}}" data-project="{{object.project.name}}" data-unit="{{protocol.unit.name}}" data-id="{{object.pk}}" type="application/vnd.google-earth.kml+xml" href="{% absurl monitoring.views.proportional_symbols object.pk protocol.pk %}" class="view_data" title="{{object.name}} {{protocol.name}} data">View Data</a></p>
    {% endfor %}
    {% else %}
        {% ifequal object.protocols.count 0 %}
        <p>No data currently available for this species.</p>
        {% else %}
        <p>Sampled via the following protocols:
            <ul>
                {% for protocol in object.protocols %}
                    <li class="protocol">{{protocol.name|lower}} <a data-records-url="{% url monitoring.views.taxon_records object.pk protocol.pk 99999999999 %}" data-common_name="{{object.common_name}}" data-scientific_name="{{object.scientific_name}}" data-protocol="{{protocol.name}}" data-project="{{object.project.name}}" data-unit="{{protocol.unit.name}}" data-id="{{object.pk}}" type="application/vnd.google-earth.kml+xml" href="{% absurl monitoring.views.proportional_symbols object.pk protocol.pk %}" class="view_data" title="{{object.name}} {{protocol.name}} data">View Data</a></li>
                {% endfor %}
            </ul>
        </p>
        {% endifequal %}
    {% endifequal %}
    <br style="clear: both;">
</li>